<template lang="">
    <div>
            <van-pagination v-model="currentPage" :total-items="total" :items-per-page="2" @change='change'/>
    </div>
</template>
<script>
export default {
    props:['total'],
    data(){
        return{
            currentPage:1
        }
    },
    methods: {
        change(v){
            this.$emit('currentP',v)
        }
    },
}
</script>
<style lang="">
    
</style>